<?php
    /* $Id: config.example.php 2 2008-01-21 02:48:28Z xdracox $ */
    
    $CONF = array();
    
    /* [clan]
    * This section contains details about your clan.
    */
    
    /* The name of your clan (string). */
    $CONF['clan']['name'] = 'ClanName';
    
    /* [site]
    * This section contains site-wide settings. Things like title bar text, etc.
    */
    
    /* The text to appear on the title bar of a web browser (string).
    * The following codes can be used:
    *   %c - Clan name
    */
    $CONF['site']['titlebar'] = "Welcome to %c's website";
    
    /* [db]
    * The db (database) section defines the type of database your clan's site
    * will be using. The most common type of database is MySQL.
    */
    
    /* The type of database server to connect to (string). */
    $CONF['db']['type'] = 'mysql'; // most commonly 'mysql'
    
    /* The host of the database (string). */
    $CONF['db']['host'] = ''; // most commonly 'localhost';
    
    /* The username to connect to the database server as (string). */
    $CONF['db']['user'] = '';
    
    /* The password for the above username (string). */
    $CONF['db']['pass'] = '';
    
    /* The name of the database to use (string). */
    $CONF['db']['name'] = '';
    
    /* [smarty]
    * This section sets all the smarty settings like the template dir and any
    * configuration files
    */
    
    /* The location of where your templates are located (string). It is best not
    * to change this location. */
    $CONF['smarty']['template_dir'] = ROOT . '/templates';
    
    /* The template to load and use (string). */
    $CONF['smarty']['template'] = 'nettek';
    
    /* [auth]
    * The auth section deals with security things like the password salts,
    * session lengths, and how to deal with incorrect logins.
    * WARNING: The settings salt1 and salt2 MUST NOT BE CHANGED once your site
    * has been put up.
    */
    
    /* First value to salt a password with (string). */
    $CONF['auth']['salt1'] = 'scpwnz';
    
    /* Second value to use as a salt (string). */
    $CONF['auth']['salt2'] = 'wcsux';
    
    /* [mods]
    * This section is split into two. First, we have our "built-in" mods. These
    * are the mods that come with Battle.net Clan Scripts. The "built-in" mods
    * include FrontPage, SideBar, and RankSystem. These mods are automatically
    * put in place where they belong. Second, are the "external" mods. These
    * mods have independent pages of their own.
    */
    
    /* The first "built-in" mod is the FrontPage mod. It is set to use the
    * the default FrontPage by default.
    */
    $CONF['mods']['frontpage']['name'] = 'default';
    
    /* This denotes the number of news items to display for the default
    * FrontPage mod.
    */
    $CONF['mods']['frontpage']['news_items'] = 5;
    
    /* This part is for the SideBar mod. We want to use the default one. */
    $CONF['mods']['sidebar']['name'] = 'default';
    
    $sections = array();
    
    /* Here we setup the "Main" section of the side bar. The "Main" section
    * contains a few links to help users navigate the site. We also set the
    * section's type here. Main is just links so we specify 'links' as its type.
    *
    * If the type were to be 'mod', we would specify a mod name like so:
    * $sections[0]['mod'] = 'MOD_NAME_HERE';
    */
    $sections[0]['name'] = 'Main';
    $sections[0]['type'] = 'links';
    
    /* The way the links are stored may seem cryptic, but it's really quite
    * simple. The first subscript (the first [0]) indicates which section, which
    * is the first one (in programming, we start with 0, not 1). So these next
    * two lines declare the following: in the first section, the first link's
    * text is 'Home' and the address is 'index.php'
    */
    $sections[0][0]['text'] = 'Home';
    $sections[0][0]['addr'] = 'index.php';
    
    /* Here we declare: in the first section, the second link's text is
    * 'Console' and the address is 'console.php'
    */
    $sections[0][1]['text'] = 'Console';
    $sections[0][1]['addr'] = 'console.php';
    
    /* The default rank system allows for a rank page. However, if you change
    * the rank mod, it may not support a ranks page and you must remove the
    * following two lines or get a simple error page.
    */
    $sections[0][2]['text'] = 'Ranks';
    $sections[0][2]['addr'] = 'rankings.php';
    
    /* You may have to change this setting if you have changed the default rank
    * mod and your ranks are displayed differently.
    */
    $sections[0][3]['text'] = 'Members';
    $sections[0][3]['addr'] = 'members.php';
    
    /* Remove these lines if you do not want a diplomacy page. */
    $sections[0][4]['text'] = 'Diplomacy';
    $sections[0][4]['addr'] = 'diplomacy.php';
    
    $CONF['mods']['sidebar']['sections'] = $sections;
    
    /* Here we setup our rank system to use the default */
    $CONF['mods']['ranksystem']['name'] = 'default';
    
    /* This section is for the "external" mods. We will setup the Diplomacy
    * mod for demonstration purposes.
    */
    
    /* Even though the Diplomacy mod has its own page, the scripts still need
    * to know its name so that it can load its settings changer and console
    * options.
    */
    $CONF['mods'][0] = 'Diplomacy';
    $CONF['mods'][1] = 'MemberInfo';
    $CONF['mods'][2] = 'PrivateMessages';
    
    /*** START: ENTER CUSTOM MOD OPTIONS HERE ***/
    
    
    
    /*** END: ENTER CUSTOM MOD OPTIONS HERE ***/
?>
